package com.shiyanlou.file.service;

import com.shiyanlou.file.common.RestResult;
import com.shiyanlou.file.model.User;

public interface UserService {
    RestResult<String> registerUser(User user);

    RestResult<User> login(User user);
    //实验8代码，添加 `getUserByToken` 方法，该方法通过 token 获取到用户信息
    User getUserByToken(String token);
}